package Day1.examples;

import java.util.Scanner;

public class CallingAMethod {

	public static void main(String[] args) {
		
		Scanner input = new Scanner (System.in);
		
		MethodCalled anyObject = new MethodCalled();
		//methodCalled is the name of the class, we are calling that method in this program.
		
		System.out.println("Enter your name here:");
	
		
		String name=input.nextLine();
		anyObject.simpleMessage(name);
		
		MethodCalled.simpleMessage(name);

	}

}
